package com.ruoyi.system.service.impl;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.ruoyi.common.annotation.DataScope;
import com.ruoyi.common.core.domain.entity.SysDept;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.utils.ShiroUtils;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.system.mapper.WxMaterMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.WxDriverRecordMapper;
import com.ruoyi.system.domain.WxDriverRecord;
import com.ruoyi.system.service.IWxDriverRecordService;
import com.ruoyi.common.core.text.Convert;

import static com.github.pagehelper.page.PageMethod.startPage;

/**
 * recordService业务层处理
 * 
 * @author ruoyi
 * @date 2021-07-27
 */
@Service
public class WxDriverRecordServiceImpl implements IWxDriverRecordService 
{
    @Autowired
    private WxDriverRecordMapper wxDriverRecordMapper;

    @Autowired
    private WxMaterMapper wxMaterMapper;

    @Override
    public List<WxDriverRecord> selectWxDriverRecordLists(Map map) {
        return wxDriverRecordMapper.selectWxDriverRecordLists(map);
    }

    /**
     * 查询record
     * 
     * @param recordId recordID
     * @return record
     */
    @Override
    public WxDriverRecord selectWxDriverRecordById(Long recordId)
    {
        return wxDriverRecordMapper.selectWxDriverRecordById(recordId);
    }

    @Override
    public List<WxDriverRecord> selectWxDriverRecordListForExport(Map map) {
        return wxDriverRecordMapper.selectWxDriverRecordListForExport(map);
    }

    @Override
    public List<WxDriverRecord> selectWxDriverRecordList(WxDriverRecord wxDriverRecord) {
        return wxDriverRecordMapper.selectWxDriverRecordList(wxDriverRecord);
    }

    /**
     * 查询record列表
     * 
     * @param wxDriverRecord record
     * @return record
     */
//    @Override
//    @DataScope(deptAlias = "d", userAlias = "u")
//    public List<WxDriverRecord> selectWxDriverRecordList(Map map)
//    {
//        return wxDriverRecordMapper.selectWxDriverRecordList(map);
//    }

    /**
     * 新增record
     * 
     * @param wxDriverRecord record
     * @return 结果
     */
    @Override
    public int insertWxDriverRecord(WxDriverRecord wxDriverRecord)
    {
        return wxDriverRecordMapper.insertWxDriverRecord(wxDriverRecord);
    }

    /**
     * 修改record
     * 
     * @param wxDriverRecord record
     * @return 结果
     */
    @Override
    public int updateWxDriverRecord(WxDriverRecord wxDriverRecord)
    {
        return wxDriverRecordMapper.updateWxDriverRecord(wxDriverRecord);
    }

    /**
     * 删除record对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteWxDriverRecordByIds(String ids)
    {
        return wxDriverRecordMapper.deleteWxDriverRecordByIds(Convert.toStrArray(ids));
    }

}
